﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CadastrarSegmento.aspx.cs" 
         Inherits="BuscadorDePreco.CadastrarSegmento" MasterPageFile="~/InnerMaster.master" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentTitleDiv" runat="server">
    <h1>
    <span><a href="/Segmentos.aspx" alt="">Segmentos</a>/ </span>Novo Segmento
    </h1>
    <script src="Scripts/Utils.js" type="text/javascript"></script>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentInputs" runat="server">
    <form id="form1" runat="server">
        <asp:HiddenField ID="SegmentoIdHdf" runat="server" />
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        <div class="inputs">
            Segmento: <asp:TextBox runat="server" ID="NomeSegmentoTb"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="NomeSegmentoValidator" runat="server" ErrorMessage="O campo Segmento não pode ficar em branco." Display="Dynamic" ControlToValidate="NomeSegmentoTb">
                    </asp:RequiredFieldValidator>
            <div>
                <asp:Label ID="ResultadoCadastroLbl" runat="server" Visible="false" Text="" Style="color: Blue;"></asp:Label>
            </div>

		    <div style="margin-top: 30px;" runat="server" id="BotoesCadastro">
			    <asp:Button runat="server" ID="CadastrarBtn" Text="Cadastrar" onclick="CadastrarBtn_Click" />
                    
                <input type="button" value="Limpar campos" onclick="limpaFormularioCadastro();" />
		    </div>

            <div style="margin-top: 30px;display: none;" runat="server" id="BotoesEdicao">
				<asp:Button runat="server" ID="SalvarBtn" Text="Salvar" onclick="SalvarBtn_Click" />
			</div>
        </div>
    </form>
</asp:Content>